#ifndef MAINWINDOW_H
#define MAINWINDOW_H

#include <QMainWindow>
#include "window.h"

class MainWindow : public QMainWindow
{
    Q_OBJECT
public:
    explicit MainWindow(QWidget *parent = 0);
    void closeEvent(QCloseEvent *e);

private:
    Window w;
    QByteArray program;
    QString  lastdir;

    QToolBar *debugToolBar;
    QToolBar *breakToolBar;
    QToolBar *fileToolBar;

    QAction *runButton;
    QAction *debugButton;
    QAction *stepButton;
    QAction *stopButton;
    QAction *contButton;
    QAction *delayButton;
    QAction *resetButton;
    QAction *traceButton;
    QAction *clearBreakButton;
    QAction *showBreakButton;
    QAction *newBreakButton;
    QAction *loadButton;

signals:

public slots:
    void load();
    void cont();
    void debug();
    void delay();
    void reset();
    void start();
    void stop();
    void step();
    void trace();
};

#endif // MAINWINDOW_H
